package CalesRobot;

import battlecode.common.MapLocation;

public class BOTInstanceVariables 
{
	public MapLocation[] recentLocations;
	public BOTInstanceVariables()
	{
		recentLocations=new MapLocation[3];
	}
	
	public void AddLocation(MapLocation loc)
	{
		recentLocations[1]=recentLocations[0];
		recentLocations[2]=recentLocations[1];
		recentLocations[0]=loc;
	}
	
	public Boolean HasRecentLocation(MapLocation loc)
	{
		for(MapLocation locTest : recentLocations)
		{
			if(locTest==loc)
				return true;
		}
		return false;
	}
	
}
